<?
//搜索的项目用  equal_name，表示搜索条件 等于输入内容，对应为name的项
//搜索的项目用  like_name+remark+introduce  就会搜索多个项，只要输入内容，就会搜索
//less_ 就是小于
//greater_ 就是大于
//lessequal_ 就是小于等于
//greaterequal_ 就是大于等于

//这样去拼凑一个语句出来。多个项的话，就用+号隔开
?>

    <div class="select-box clearfix layui-form">
        <form action="category_list.php" >

            <div class="layui-form-item">
                <label class="layui-form-label">关键词</label>
                <div class="layui-input-block">
                    <input type="text" name="like_name+remark+introduce" placeholder="可搜索名称,备注,标题" autocomplete="off"
                           class="layui-input" value="<? echo $_REQUEST['like_name+remark+introduce']?>" >
                </div>
            </div>




<!--
            <div class="layui-form-item search-period">
                <label class="layui-form-label">时间段</label>

                <div class="layui-input-block">
                    <input type="text" name="greater_creat_date"
                           placeholder="请输入开始时间" autocomplete="off" class="layui-input laydate"
                           value="<?if($_REQUEST['greater_creat_date']){echo $_REQUEST['greater_creat_date'] ;} ?>" >
                    <span>-</span>
                    <input type="text" name="less_creat_date"
                           placeholder="请输入结束时间" autocomplete="off" class="layui-input laydate"
                           value="<?if($_REQUEST['less_creat_date']){echo $_REQUEST['less_creat_date'];} ?>"  >
                </div>
            </div>
-->

            <div class="layui-form-item">
                <label class="layui-form-label">发布状态</label>
                <div class="layui-input-block">
                    <select name="equal_publish_status" lay-search="">
                        <option value=""     <?if($_REQUEST['equal_publish_status']==""){echo "selected";}?>>全部</option>
                        <option value="发布"  <?if($_REQUEST['equal_publish_status']=="发布"){echo "selected";}?>>发布</option>
                        <option value="隐藏"  <?if($_REQUEST['equal_publish_status']=="隐藏"){echo "selected";}?>>隐藏</option>
                    </select>
                </div>
            </div>
            <!--

            <div class="layui-form-item">
                <label class="layui-form-label">标签</label>
                <div class="layui-input-block">
                    <select name="like_tag" lay-search="" value="<? echo $_REQUEST['like_tag']?>">
                        <option value="">全部</option>
                        <?php foreach ($tag_list as $index => $tag) { ?>
                            <option value="<?php echo $tag; ?>"
                                <?php if ($_REQUEST['like_tag'] == $tag) { echo "selected"; } ?>><?php echo $tag; ?></option>
                        <?php } ?>
                    </select>
                </div>
            </div>
-->






            <input type="hidden" name="now_extender" value="<?echo $_REQUEST['now_extender']?>">
            <input type="hidden" name="search_status" value="on">

            <button class="layui-btn  layui-btn-sm" ><i class="layui-icon">&#xe615;</i> 查找</button>
            <a class="layui-btn white layui-btn-sm" href="category_list.php?now_extender=<?echo $_REQUEST['now_extender']?>" ><i class="layui-icon">&#x1006;</i> 重置</a>




            <br class="clearfloat"/>
        </form>


    </div>

